<template>
    <div>
        <h2>欢迎来到首页</h2>
    </div>
</template>

<script>
export default {
    mounted() {
        if (this.$store.state.loginstate == 0) {
            this.$router.push('/login')
        }
    },
}
</script>

<style scoped>
h2 {
    text-align: center;
}
</style>